package com.netease.b.a;

import com.netease.framework.a.k;
import com.netease.framework.a.m;
import com.netease.pris.atom.r;
import com.netease.pris.b.a;
import com.netease.pris.c.e;
import com.netease.pris.protocol.c;
import java.util.Collections;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;

public class o extends ag
{
  static final String a = "PRISTransactionFavorite";
  String b;
  String c;
  com.netease.pris.protocol.d d;
  m e;
  String f;
  com.netease.pris.atom.u g;

  private o(String paramString1, String paramString2, int paramInt)
  {
    super(paramInt);
    this.b = paramString1;
    this.c = paramString2;
  }

  public static o a(String paramString1, String paramString2)
  {
    return new o(paramString1, paramString2, 503);
  }

  public static o a(String paramString1, String paramString2, com.netease.pris.atom.u paramu)
  {
    o localo = new o(paramString1, paramString2, 501);
    localo.g = paramu;
    return localo;
  }

  public static o a(String paramString1, String paramString2, com.netease.pris.protocol.d paramd)
  {
    o localo = new o(paramString1, paramString2, 501);
    localo.d = paramd;
    return localo;
  }

  public static o a(String paramString1, String paramString2, String paramString3)
  {
    o localo = new o(paramString2, paramString3, 504);
    localo.f = paramString1;
    return localo;
  }

  private com.netease.pris.protocol.d a(String paramString)
  {
    com.netease.pris.protocol.d locald = new com.netease.pris.protocol.d();
    com.netease.pris.atom.o localo = new com.netease.pris.atom.o();
    localo.h(this.g.V());
    locald.j.add(localo);
    return locald;
  }

  public static o b(String paramString1, String paramString2)
  {
    return new o(paramString1, paramString2, 505);
  }

  public static o b(String paramString1, String paramString2, com.netease.pris.atom.u paramu)
  {
    o localo = new o(paramString1, paramString2, 502);
    localo.g = paramu;
    return localo;
  }

  public static o b(String paramString1, String paramString2, com.netease.pris.protocol.d paramd)
  {
    o localo = new o(paramString1, paramString2, 502);
    localo.d = paramd;
    return localo;
  }

  public static o c(String paramString1, String paramString2)
  {
    return new o(paramString1, paramString2, 500);
  }

  private void c(com.netease.pris.protocol.d paramd)
  {
    Iterator localIterator = paramd.h.iterator();
    while (localIterator.hasNext())
      ((com.netease.pris.atom.u)localIterator.next()).c(true);
  }

  m a()
  {
    k localk = null;
    if (d.h().i())
    {
      com.netease.pris.protocol.d locald = a(this.b, true);
      c(n(), locald);
    }
    while (true)
    {
      return localk;
      localk = c.d(this.b, this.c);
      localk.d(true);
      localk.g(true);
      localk.b(this.b);
    }
  }

  com.netease.pris.protocol.d a(String paramString, boolean paramBoolean)
  {
    LinkedList localLinkedList = e.a(d.h().a(), paramString, paramBoolean);
    if (localLinkedList != null)
    {
      Iterator localIterator = localLinkedList.iterator();
      while (localIterator.hasNext())
        ((com.netease.pris.atom.u)localIterator.next()).c(true);
    }
    for (com.netease.pris.protocol.d locald = new com.netease.pris.protocol.d(localLinkedList); ; locald = new com.netease.pris.protocol.d())
      return locald;
  }

  m b()
  {
    k localk = null;
    if (d.h().i())
      c(n(), new com.netease.pris.protocol.d());
    while (true)
    {
      return localk;
      localk = new k(this.f);
      localk.d(true);
      localk.g(true);
      localk.b(this.b);
    }
  }

  protected void b(int paramInt, Object paramObject)
  {
    if (n() == 500)
    {
      com.netease.pris.protocol.d locald = a(this.b, true);
      if (locald != null)
      {
        c(locald);
        c(0, locald);
      }
    }
    super.b(paramInt, paramObject);
  }

  public void b(com.netease.pris.protocol.d paramd)
  {
    switch (n())
    {
    case 501:
    case 502:
    case 503:
    default:
    case 500:
    case 504:
    case 505:
    }
    while (true)
    {
      return;
      com.netease.pris.protocol.d locald = a(this.b, true);
      if (locald != null)
        paramd.h.addAll(0, locald.h);
      c(paramd);
      continue;
      LinkedList localLinkedList = new LinkedList();
      Iterator localIterator1 = paramd.h.iterator();
      while (localIterator1.hasNext())
        localLinkedList.add(((com.netease.pris.atom.u)localIterator1.next()).V());
      Iterator localIterator2 = paramd.i.iterator();
      while (localIterator2.hasNext())
        localLinkedList.add(((r)localIterator2.next()).d());
      e.a(d.h().a(), this.b, localLinkedList);
    }
  }

  public void c()
  {
    if (!a.S())
      d.h().a(this);
    while (true)
    {
      return;
      m localm = null;
      switch (n())
      {
      default:
      case 500:
      case 504:
      case 503:
      case 505:
      case 501:
      case 502:
      }
      while (true)
      {
        if (localm == null)
          break label158;
        this.e = localm;
        a(this.e);
        break;
        localm = a();
        continue;
        localm = b();
        continue;
        localm = f();
        continue;
        localm = p();
        continue;
        if (this.g != null)
        {
          localm = r();
          continue;
        }
        localm = q();
        continue;
        if (this.g != null)
        {
          localm = t();
          continue;
        }
        localm = s();
      }
      label158: h();
    }
  }

  m f()
  {
    com.netease.pris.protocol.d locald = a(c.b, false);
    if ((locald.h == null) || (locald.h.size() == 0));
    for (k localk = null; ; localk = c.a(locald, this.b, this.c))
    {
      return localk;
      Collections.reverse(locald.h);
    }
  }

  m p()
  {
    k localk = null;
    com.netease.pris.protocol.d locald = a(this.b, false);
    if ((locald.h == null) || (locald.h.size() == 0))
      c(0, null);
    while (true)
    {
      return localk;
      Collections.reverse(locald.h);
      localk = c.a(locald, this.b, this.c);
    }
  }

  m q()
  {
    k localk = null;
    if (d.h().i())
      c(n(), this.d);
    while (true)
    {
      return localk;
      localk = c.a(this.d, this.b, this.c);
    }
  }

  m r()
  {
    k localk = null;
    if (d.h().i())
    {
      e.a(d.h().a(), this.b, this.g);
      com.netease.pris.protocol.d locald2 = new com.netease.pris.protocol.d();
      locald2.h.add(this.g);
      a.b(1 + a.o());
      c(n(), locald2);
    }
    while (true)
    {
      return localk;
      if (com.netease.pris.a.u.e(d.h().a()))
      {
        localk = c.a(this.g, this.b, this.c);
        continue;
      }
      e.a(d.h().a(), this.b, this.g);
      com.netease.pris.protocol.d locald1 = new com.netease.pris.protocol.d();
      locald1.h.add(this.g);
      c(n(), locald1);
    }
  }

  m s()
  {
    if (d.h().i())
    {
      e.a(d.h().a(), this.b, this.d.h);
      com.netease.pris.protocol.d locald = new com.netease.pris.protocol.d();
      Iterator localIterator = this.d.h.iterator();
      while (localIterator.hasNext())
      {
        com.netease.pris.atom.u localu = (com.netease.pris.atom.u)localIterator.next();
        com.netease.pris.atom.o localo = new com.netease.pris.atom.o();
        localo.h(localu.V());
        locald.j.add(localo);
      }
      c(n(), locald);
    }
    for (k localk = null; ; localk = c.b(this.d, this.b, this.c))
      return localk;
  }

  m t()
  {
    k localk = null;
    if (d.h().i())
    {
      e.a(d.h().a(), this.b, this.g.V());
      com.netease.pris.protocol.d locald2 = a(this.g.V());
      c(n(), locald2);
    }
    while (true)
    {
      return localk;
      if (com.netease.pris.a.u.e(d.h().a()))
      {
        e.a(d.h().a(), this.b, this.g.V());
        localk = c.b(this.g.V(), this.b, this.c);
        continue;
      }
      if (e.b(d.h().a(), this.b, this.g.V()))
      {
        com.netease.pris.protocol.d locald1 = a(this.g.V());
        c(n(), locald1);
        continue;
      }
      d(0, null);
    }
  }
}

/* Location:           D:\android\hack\dex2jar-0.0.9.8\classes_dex2jar.jar
 * Qualified Name:     com.netease.b.a.o
 * JD-Core Version:    0.6.0
 */